var net = require('net');
var charServer = net.createServer();
clientList=[];

charServer.on("connection" , function(client){
            client.write("Hi!");
            clientList.push(client);

            client.on("data" , function(data){
                    for(var i = 0 ; i < clientList.length ; i++){
                        clientList[i].write(data);
                    }
                });
        });
charServer.listen(9000);
console.log("Server is started @9000");
